const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');

module.exports = {
  mode: 'development',
  entry: {
    example: './src/example/app.js'
  },
  output: {
    path: path.resolve(__dirname, 'dist/example'),
    filename: '[name].bundle.js',
  },
  plugins: [
    new HtmlWebpackPlugin({
      filename: 'example.html'
    })
  ]
};